package com.toune.dltools

import android.widget.TextView
import com.zzhoujay.richtext.RichText

/**
 * 富文本工具类
 */
object DLRichTextTool {
    fun intoTextView(text:String,textView: TextView){
        RichText.from(text).into(textView)
    }

    fun fromHtmlIntoTextView(text: String,textView: TextView){
        RichText.fromHtml(text).into(textView)
    }

    fun fromMDIntoTextView(text: String,textView: TextView){
        RichText.fromMarkdown(text).into(textView)
    }

}